<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('edit Inventory')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-inventory-edit" th:object="${inventory}">
            <input id="productId" name="productId" th:field="*{productId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">sku：</label>
				<div class="col-sm-8">
					<input id="sku" name="sku" th:field="*{sku}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">Product Name：</label>
				<div class="col-sm-8">
					<input id="productName" name="productName" th:field="*{productName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">NY Warehouse：</label>
				<div class="col-sm-8">
					<input id="nyWarehouse" name="nyWarehouse" th:field="*{nyWarehouse}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">CA Warehouse：</label>
				<div class="col-sm-8">
					<input id="caWarehouse" name="caWarehouse" th:field="*{caWarehouse}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">FBA Warehouse：</label>
				<div class="col-sm-8">
					<input id="fbaWarehouse" name="fbaWarehouse" th:field="*{fbaWarehouse}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">CH Warehouse：</label>
				<div class="col-sm-8">
					<input id="chWarehouse" name="chWarehouse" th:field="*{chWarehouse}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">On Way：</label>
				<div class="col-sm-8">
					<input id="onWay" name="onWay" th:field="*{onWay}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/inventory";
		$("#form-inventory-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-inventory-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
